package com.fenghongzhang.day015;

public class MusicUtil {
    public static final int SINGLE = 0;
    public static final int ORDER = 1;
    public static final int RANDOM = 2;


    //格式化时间
    public static String fmtDate(String s){
        int i = Integer.parseInt(s);
        if(i / 1000 % 60 >= 10){
            return i / 1000 / 60 +":"+ i / 1000 % 60;
        }else{
            return i / 1000 / 60 +":0"+ i / 1000 % 60;
        }
    }
}
